package com.miniapp.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.miniapp.constant.SysConstants;
import com.miniapp.entity.enums.UserTemplateSaveType;

/**
 * 用户模版表
 * 
 * @author linyuchi
 * @email xunli-03@163.com
 * @date 2018-05-20 13:10:34
 */
@SuppressWarnings("serial")
@TableName("mini_user_template")
public class MiniUserTemplateEntity extends BaseEntity{

	/**
     * 名称
     */
	private String name;


	private String appid;

	    /**
     * 类型
     */
	private UserTemplateSaveType type;
	
	/**
     * 使用标示
     */
	private String used;

	private Long userId;


	/**
	 * 缩略图
	 */
	@TableField(exist = false)
	private String image;

	@TableField(exist = false)
	private Integer saveType;
	/**
	 * 图片全路径
	 */

	private String imagePath;

	public String getImagePath() {
		return imagePath;
	}

	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}

	public Integer getSaveType() {
		return saveType;
	}

	public void setSaveType(Integer saveType) {
		this.saveType = saveType;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public UserTemplateSaveType getType() {
		return type;
	}

	public void setType(UserTemplateSaveType type) {
		this.type = type;
	}

	public String getUsed() {
		return used;
	}

	public void setUsed(String used) {
		this.used = used;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getImage() {
		return SysConstants.CDN_DOMAIN_UPLOAD+imagePath;
	}

	public void setImage(String image) {
		this.image = image;
	}
}
